<template>
  <div class="q-pa-md">
    <t-badge color="secondary" class="q-mb-lg">
      Model: {{ marker.min }} to {{ marker.max }} (-6 to 10, step 2)
    </t-badge>

    <t-range
      v-model="marker"
      :min="-6"
      :max="10"
      :step="2"
      label
      markers
      color="orange"
    />

    <t-range
      v-model="marker"
      :min="-6"
      :max="10"
      :step="2"
      label
      snap
      markers
      color="purple"
    />

    <t-badge color="secondary">
      Model: {{ orangeModel }}<br />(0 to 16, step 2, marker step 4)
    </t-badge>
    <t-range
      v-model="orangeModel"
      :min="-8"
      :max="16"
      :step="2"
      label
      snap
      :markers="4"
      color="orange"
    />
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        marker: ref({
          min: 6,
          max: 8,
        }),

        orangeModel: ref({
          min: 6,
          max: 10,
        }),
      };
    },
  };
</script>
